package cn.jetpiece.cloud.joss.app.modular.object.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 域
 * </p>
 *
 * @author XuJZ
 * @since 2020-09-05
 */
@TableName("oss_region")
public class Region implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * UUID
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 服务商UUID
     */
    @TableField("provider_id")
    private String providerId;

    /**
     * 中文名称
     */
    @TableField("cn_name")
    private String cnName;

    /**
     * 英文名称
     */
    @TableField("en_name")
    private String enName;

    /**
     * 协议
     */
    @TableField("protocol")
    private String protocol;

    /**
     * 外网Endpoint
     */
    @TableField("internet_endpoint")
    private String internetEndpoint;

    /**
     * 内网Endpoint
     */
    @TableField("internal_endpoint")
    private String internalEndpoint;

    /**
     * 启用(1:是,0:否)
     */
    @TableField(value = "is_enable", fill = FieldFill.INSERT)
    private Integer isEnable;

    /**
     * 删除(1:是,0:否)
     */
    @TableField(value = "is_del", fill = FieldFill.INSERT)
    private Integer isDel;

    /**
     * 新增时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 新增人
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 更新人
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProviderId() {
        return providerId;
    }

    public void setProviderId(String providerId) {
        this.providerId = providerId;
    }

    public String getCnName() {
        return cnName;
    }

    public void setCnName(String cnName) {
        this.cnName = cnName;
    }

    public String getEnName() {
        return enName;
    }

    public void setEnName(String enName) {
        this.enName = enName;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getInternetEndpoint() {
        return internetEndpoint;
    }

    public void setInternetEndpoint(String internetEndpoint) {
        this.internetEndpoint = internetEndpoint;
    }

    public String getInternalEndpoint() {
        return internalEndpoint;
    }

    public void setInternalEndpoint(String internalEndpoint) {
        this.internalEndpoint = internalEndpoint;
    }

    public Integer getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(Integer isEnable) {
        this.isEnable = isEnable;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    @Override
    public String toString() {
        return "Region{" +
                "id=" + id +
                ", providerId=" + providerId +
                ", cnName=" + cnName +
                ", enName=" + enName +
                ", protocol=" + protocol +
                ", internetEndpoint=" + internetEndpoint +
                ", internalEndpoint=" + internalEndpoint +
                ", isEnable=" + isEnable +
                ", isDel=" + isDel +
                ", createTime=" + createTime +
                ", createUser=" + createUser +
                ", updateTime=" + updateTime +
                ", updateUser=" + updateUser +
                "}";
    }
}
